using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Comdiv.Brail.Tests;
using MvcContrib.Comdiv.Brail;
using NUnit.Framework;

namespace Comdiv.Brail.Tests
{
    [TestFixture]
    public class HandlingErrorsInViews:BrailMacroTestBase
    {
        private MyBrail brail;

        [SetUp]
        public void setup(){
            this.brail = new MyBrail();

        }

       
        [Test]
        public void can_wrap_errors(){
            Action x = (()=>brail.Process("<%raise 'x'%>"));
            x.Should().Throw<Exception>();
        }
    }
}
